﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Inventory_Manager.aspx.cs"
    Inherits="page_Inventory_Manager" %>
    
<%@ Register Assembly="Infragistics2.WebUI.WebDateChooser.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebSchedule" TagPrefix="igsch" %>    
<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<%@ Register Assembly="Infragistics2.WebUI.WebDataInput.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.WebDataInput" TagPrefix="igtxt" %>
<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>盘点单据管理！</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    
    <script type="text/javascript" language="javascript">

    //获取选中行ID
    function uwgMain_AfterRowActivateHandler(gridName, rowId)
    {
         var state = igtbl_getRowById(rowId).getCellFromKey("State").getValue(); //记录订单是否已审核
         document.getElementById("hState").value = state; 

         var Id = igtbl_getRowById(rowId).getCellFromKey("ID").getValue();
         document.getElementById("hID").value = Id;                                 
    }
    
    //验证是否已选中行
    function CheckSelectRow(obj)
    {
        var ID = document.form1.hID.value;
        var state = document.getElementById("hState").value ; 
        
        var ID = document.form1.hID.value;
        if(obj=='edit')
        {
            if(ID=="")
            {
                alert("请选择要修改的订单！");
                return false;
            }
            else
            {
                if(state=='已审核')
                {
                    alert("不能编辑已审核的订单！");
                    return false;
                }
            }
        }
        else if(obj=='del')
        {
            if(ID=="")
            {
                alert("请选择要删除的订单!");
                return false;
            }
            else
            {
                if(state=='已申请')
                {
                    return confirm("确定删除该订单吗？");
                }
                else
                {
                    alert("不能删除已审核的订单！");
                    return false;
                }
            }
        }
        else if(obj=='check')
        {
            if(ID=="")
            {
                alert("请选择你要审核的订单！");
                return false;
            }
            else
            {
                if(state=='已申请')
                {
                    return confirm("确定该订单通过审核？");
                }
                else if(state=='已审核')
                {
                    alert("该订单已审核！");     
                    return false;        
                }
            }
        }
        else if(obj=='received')
        {
            if(ID=="")
            {
                alert("请选择你要操作的订单！");
                return false;
            }
            else
            {
                if(state=='已审核')
                {
                    alert("该订单已不能进行该操作！");     
                    return false;        
                }
            }
        }
    }  
    
    //打印次数的校验  
    function checkPrint(tempType) 
    {
        var orderId = document.getElementById("hID").value;     
        var type = tempType;
        
        if((orderId != 0)&&(orderId != ""))
        {
            var response = Ajax.PrintNumCheck.GetPrintNum(type,orderId+"");          
            var numTemp = response.value;

            if(numTemp>0)
            {   
                document.getElementById("hNum").value = (numTemp+1);         
                return confirm("已是第“"+(numTemp+1)+"”次打印！是否确认打印！");                                      
            }             
        }
        else
        {
            alert("请选择你要打印的单据!");
            return false;
        }  
    } 

    </script>

</head>
<body>
    <center>
        <form id="form1" runat="server">
        <div style="text-align: center;">
            <br />
            <table style="width: 96%; background-color: #85BDE2; vertical-align: middle;" border="0px"
                cellpadding="0px" cellspacing="1px">
                <tr style="background-color: #DAE7F8;">
                    <td align="center">
                        <strong>库存盘点</strong>
                    </td>
                </tr>
                <tr>
                <td>
                    <igmisc:WebPanel ID="WebPanel1" runat="server" Width="100%" BackColor="#DAE7F8" BorderColor="#106DB0"
                        BorderStyle="Solid" BorderWidth="1px" Expanded="False">
                        <Header Text="搜索...">
                        </Header>
                        <Template>
                            <table style="width:100%">
                                <tr style="text-align:left">
                                    <td align="right"valign="middle">
                                        查询类型:
                                    </td>
                                    <td align="right" valign="middle">
                                        <asp:DropDownList ID="ddlType" runat="server" Width="100px">
                                            <asp:ListItem Value="OrderNo">单据号</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td >
                                        <asp:TextBox ID="txtData" runat="server" Text=""></asp:TextBox>
                                    </td>
                                    <td valign="middle">
                                        <asp:DropDownList ID="ddlDateType" runat="server" Width="100px">
                                            <asp:ListItem Value="CreateDate">制单日期</asp:ListItem>
                                            <asp:ListItem Value="VerfyDate">审核日期</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        从
                                    </td>
                                    <td>
                                        &nbsp;<asp:TextBox ID="txtBeginDate" runat="server" Width="100px"></asp:TextBox>
&nbsp;
                                    </td>
                                    <td valign="middle">
                                        到
                                    </td>
                                    <td valign="middle">
                                        <asp:TextBox ID="txtEndDate" runat="server" Width="100px"></asp:TextBox>
                                    </td>
                                    <td >
                                        <asp:Button ID="btnSearch" runat="server"  Text="搜索" Height="22px" Width="90px" 
                                            onclick="btnSearch_Click"/>
                                    </td>
                                </tr>
                            </table>
                        </Template>
                    </igmisc:WebPanel>
                </td>
            </tr>
                <tr style="background-color: #DAE7F8;">
                    <td>
                        <igtbl:UltraWebGrid ID="uwgMain" runat="server" Height="300px" Width="100%" Style="top: 0px;
                            left: 0px;" OnPageIndexChanged="uwgMain_PageIndexChanged" 
                            onactiverowchange="uwgMain_ActiveRowChange" 
                            >
                            <Bands>
                                <igtbl:UltraGridBand>
                                    <AddNewRow View="NotSet" Visible="NotSet">
                                    </AddNewRow>
                                <Columns>
                                    <igtbl:UltraGridColumn BaseColumnName="ID" HeaderText="ID" Hidden="True" Key="ID">
                                        <Header Caption="ID">
                                        </Header>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="InventoryNO" HeaderText="订单编号" Key="InventoryNO" Width="20%">
                                        <Header Caption="订单编号">
                                            <RowLayoutColumnInfo OriginX="1" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="1" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="CreateShopName" HeaderText="盘点机构" Key="CreateShopName" Width="10%">
                                        <Header Caption="盘点机构">
                                            <RowLayoutColumnInfo OriginX="4" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="4" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="InventoryTypeName" HeaderText="盘点类型" Key="InventoryTypeName" Width="10%">
                                        <Header Caption="盘点类型">
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="ActualMoney" HeaderText="金额" Key="ActualMoney" Width="10%">
                                        <Header Caption="金额">
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>                                    
                                    <igtbl:UltraGridColumn BaseColumnName="State" HeaderText="单据状态" Key="State" Width="10%">
                                        <Header Caption="单据状态">
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>                                    
                                    <igtbl:UltraGridColumn BaseColumnName="CreateCustomerName" HeaderText="制单人" Key="CreateCustomerName" Width="10%">
                                        <Header Caption="制单人">
                                            <RowLayoutColumnInfo OriginX="6" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="6" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="CreateDate" HeaderText="制单时间" Key="CreateDate"  Width="10%">
                                        <Header Caption="制单时间">
                                            <RowLayoutColumnInfo OriginX="7" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="7" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="VerfyCustomerName" HeaderText="审核人" Key="VerfyCustomerName" Width="10%">
                                        <Header Caption="审核人">
                                            <RowLayoutColumnInfo OriginX="8" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="8" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="VerfyDate" HeaderText="审核时间" Key="VerfyDate"  Width="10%">
                                        <Header Caption="审核时间">
                                            <RowLayoutColumnInfo OriginX="9" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="9" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                </Columns>
                                    <RowEditTemplate>
                                        <br></br>
                                        <p align="center">
                                            <input id="igtbl_reOkBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px;"
                                                type="button" value="OK" />
                                            &nbsp;
                                            <input id="igtbl_reCancelBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px;"
                                                type="button" value="Cancel" />
                                            </input> </input>
                                        </p>
                                    </RowEditTemplate>
                                    <RowTemplateStyle BackColor="Window" BorderColor="Window" BorderStyle="Ridge">
                                        <BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" />
                                    </RowTemplateStyle>
                                </igtbl:UltraGridBand>
                            </Bands>
                            <DisplayLayout AllowColSizingDefault="Free" Version="4.00" SelectTypeRowDefault="Extended"
                                Name="UWGDepotxIN" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" RowHeightDefault="20px"
                                TableLayout="Fixed" ViewType="OutlookGroupBy" AllowColumnMovingDefault="OnServer"
                                HeaderClickActionDefault="SortMulti" StationaryMargins="Header" BorderCollapseDefault="Separate"
                                StationaryMarginsOutlookGroupBy="True" AutoGenerateColumns="False">
                                <FrameStyle Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" BackColor="Window"
                                    BorderWidth="1px" BorderStyle="Solid" Height="300px" Width="100%">
                                </FrameStyle>
                                <Pager MinimumPagesForDisplay="2" AllowPaging="True" NextText="下页" PrevText="上页"
                                    StyleMode="ComboBox" PageSize="1" Pattern="&lt;table width=100%&gt;&lt;tr&gt;&lt;td align=left&gt;页码：[currentpageindex]/[pagecount] 每页:[pagesize]条&lt;/td&gt;&lt;td align=right&gt;[default]&lt;td&gt;&lt;/tr&gt;&lt;/table&gt;">
                                    <Style BackColor="#FFFFCC" BorderWidth="1px" BorderStyle="Solid" Height="26px">
                                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                                </Pager>
                                <EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
                                </EditCellStyleDefault>
                                <FooterStyleDefault BackColor="LightGray" BorderWidth="1px" BorderStyle="Solid">
                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                    </BorderDetails>
                                </FooterStyleDefault>
                                <HeaderStyleDefault HorizontalAlign="Left" BorderStyle="Solid" Height="26px">
                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                    </BorderDetails>
                                </HeaderStyleDefault>
                                <RowStyleDefault Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" BackColor="Window"
                                    BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid">
                                    <Padding Left="3px"></Padding>
                                    <BorderDetails ColorLeft="Window" ColorTop="Window"></BorderDetails>
                                </RowStyleDefault>
                                <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                                </GroupByRowStyleDefault>
                                <GroupByBox Hidden="True" Prompt="">
                                    <Style BackColor="ActiveBorder" BorderColor="Window">
                                        </Style>
                                </GroupByBox>
                                <AddNewBox Hidden="False">
                                    <Style BackColor="Window" BorderColor="InactiveCaption" BorderWidth="1px" BorderStyle="Solid">
                                        <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" ></BorderDetails >
                                    </Style>
                                </AddNewBox>
                                <ActivationObject BorderColor="" BorderWidth="">
                                </ActivationObject>
                                <FilterOptionsDefault>
                                    <FilterOperandDropDownStyle CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                        Font-Size="11px" BackColor="White" BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid">
                                        <Padding Left="2px"></Padding>
                                    </FilterOperandDropDownStyle>
                                    <FilterDropDownStyle CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                        Font-Size="11px" BackColor="White" BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid"
                                        Height="300px" Width="200px">
                                        <Padding Left="2px"></Padding>
                                    </FilterDropDownStyle>
                                    <FilterHighlightRowStyle ForeColor="White" BackColor="#151C55">
                                    </FilterHighlightRowStyle>
                                </FilterOptionsDefault>
                                <SelectedRowStyleDefault BackColor="#80FF80">
                                </SelectedRowStyleDefault>
                                <ClientSideEvents AfterRowActivateHandler="uwgMain_AfterRowActivateHandler" />
                            </DisplayLayout>
                        </igtbl:UltraWebGrid>
                    </td>
                </tr>
                <tr style="background-color: #DAE7F8;">
                    <td align="left">
                        <asp:Button ID="btnAdd" runat="server" Width="90px" Height="22px" Text="新增单据" 
                            OnClick="btnAdd_Click" />
                        &nbsp;
                        <asp:Button ID="btnEdit" runat="server" Width="90px" Height="22px" Text="缉编单据"
                            OnClientClick="return CheckSelectRow('edit')" OnClick="btnEdit_Click" />
                        &nbsp;
                        <asp:Button ID="btnDel" runat="server" Height="22px" Text="删除单据" Width="90px"
                            OnClientClick="return CheckSelectRow('del')" OnClick="btnDel_Click" />
                        &nbsp;
                        <asp:Button ID="btnCheck" runat="server" Height="22px" Width="90px" Text="审核单据"
                            OnClientClick="return CheckSelectRow('check')" OnClick="btnCheck_Click" />
                        &nbsp;
                        <asp:Button ID="btnExcel" runat="server" Height="22px" Width="90px" Text="导出Excel"
                             OnClientClick="return CheckSelectRow('check')" OnClick="btnExcel_Click" />
                        &nbsp;
                        <asp:Button ID="btnPrint" runat="server" Height="22px" Width="90px" Text="打印单据"
                            OnClientClick="return checkPrint(1)" OnClick="btPrint_Click" Visible="false"/>
                    </td>
                </tr>
                <tr id="trDetail" runat="server" visible="false">
                <td>
                <igtbl:UltraWebGrid ID="uwgDetail" runat="server" Height="201px">
                                            <Bands>
                                                <igtbl:UltraGridBand AllowUpdate="Yes">
                                                    <Columns>
                                                        <igtbl:UltraGridColumn BaseColumnName="ID" HeaderText="ID" Hidden="True" Key="ID">
                                                            <Header Caption="ID">
                                                            </Header>
                                                        </igtbl:UltraGridColumn>
                                                        <igtbl:UltraGridColumn HeaderText="产品编号" BaseColumnName="GoodNo" Key="GoodNo" Width="20%">
                                                            <Header Caption="产品编号">
                                                                <RowLayoutColumnInfo OriginX="1" />
                                                            </Header>
                                                            <Footer>
                                                                <RowLayoutColumnInfo OriginX="1" />
                                                            </Footer>
                                                        </igtbl:UltraGridColumn>
                                                        <igtbl:UltraGridColumn BaseColumnName="GoodName_CN" HeaderText="产品名称" Key="GoodName_CN"  Width="20%">
                                                            <Header Caption="产品名称">
                                                                <RowLayoutColumnInfo OriginX="2" />
                                                            </Header>
                                                            <Footer>
                                                                <RowLayoutColumnInfo OriginX="2" />
                                                            </Footer>
                                                        </igtbl:UltraGridColumn>
                                                        <igtbl:UltraGridColumn BaseColumnName="GoodNorm" HeaderText="产品规格" Key="GoodNorm"  Width="20%">
                                                            <Header Caption="产品规格">
                                                                <RowLayoutColumnInfo OriginX="3" />
                                                            </Header>
                                                            <Footer>
                                                                <RowLayoutColumnInfo OriginX="3" />
                                                            </Footer>
                                                        </igtbl:UltraGridColumn>
                                                        <igtbl:UltraGridColumn BaseColumnName="GoodColor" HeaderText="产品颜色" Key="GoodColor" Hidden="true">
                                                            <Header Caption="产品颜色">
                                                                <RowLayoutColumnInfo OriginX="4" />
                                                            </Header>
                                                            <Footer>
                                                                <RowLayoutColumnInfo OriginX="4" />
                                                            </Footer>
                                                        </igtbl:UltraGridColumn>
                                                        <igtbl:UltraGridColumn HeaderText="产品价格"  Width="20%" BaseColumnName="ActualPrice"
                                                            Key="ActualPrice">
                                                            <Header Caption="产品价格">
                                                                <RowLayoutColumnInfo OriginX="5" />
                                                            </Header>
                                                            <Footer>
                                                                <RowLayoutColumnInfo OriginX="5" />
                                                            </Footer>
                                                        </igtbl:UltraGridColumn>
                                                        <igtbl:UltraGridColumn BaseColumnName="Amount" 
                                                            HeaderText="数量" Key="Amount"  Width="10%">
                                                            <Header Caption="数量">
                                                                <RowLayoutColumnInfo OriginX="6" />
                                                            </Header>
                                                            <Footer>
                                                                <RowLayoutColumnInfo OriginX="6" />
                                                            </Footer>
                                                        </igtbl:UltraGridColumn>
                                                        <igtbl:UltraGridColumn BaseColumnName="ActualAmount" Hidden="true"
                                                            HeaderText="到货数量" Key="ActualAmount" Width="10%">
                                                            <Header Caption="到货数量">
                                                                <RowLayoutColumnInfo OriginX="6" />
                                                            </Header>
                                                            <Footer>
                                                                <RowLayoutColumnInfo OriginX="6" />
                                                            </Footer>
                                                        </igtbl:UltraGridColumn>
                                                    </Columns>
                                                    <RowEditTemplate>
                                                        <br />
                                                        <p align="center">
                                                            <input id="igtbl_reOkBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px;"
                                                                type="button" value="OK" />
                                                            &nbsp;
                                                            <input id="igtbl_reCancelBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px;"
                                                                type="button" value="Cancel" />
                                                            </input> </input>
                                                        </p>
                                                    </RowEditTemplate>
                                                    <RowTemplateStyle BackColor="Window" BorderColor="Window" BorderStyle="Ridge">
                                                        <BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" />
                                                    </RowTemplateStyle>
                                                    <AddNewRow View="NotSet" Visible="NotSet">
                                                    </AddNewRow>
                                                </igtbl:UltraGridBand>
                                            </Bands>
                                            <DisplayLayout AllowAddNewDefault="Yes" AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer"
                                                AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" AutoGenerateColumns="False"
                                                BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" Name="UWGDetail"
                                                RowHeightDefault="20px" SelectTypeRowDefault="Extended" StationaryMargins="Header"
                                                StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy">
                                                <GroupByBox Hidden="True" Prompt="">
                                                    <Style BackColor="ActiveBorder" BorderColor="Window">
                                                        </Style>
                                                </GroupByBox>
                                                <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                                                </GroupByRowStyleDefault>
                                                <ActivationObject BorderColor="" BorderWidth="">
                                                </ActivationObject>
                                                <FooterStyleDefault BackColor="Red" BorderStyle="Solid" BorderWidth="1px">
                                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                </FooterStyleDefault>
                                                <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                                                    Font-Names="Microsoft Sans Serif" Font-Size="8.25pt">
                                                    <BorderDetails ColorLeft="Window" ColorTop="Window" />
                                                    <Padding Left="3px" />
                                                </RowStyleDefault>
                                                <FilterOptionsDefault>
                                                    <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid"
                                                        BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                                        Font-Size="11px">
                                                        <Padding Left="2px" />
                                                    </FilterOperandDropDownStyle>
                                                    <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                                                    </FilterHighlightRowStyle>
                                                    <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                                                        CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                                        Font-Size="11px" Height="300px" Width="200px">
                                                        <Padding Left="2px" />
                                                    </FilterDropDownStyle>
                                                </FilterOptionsDefault>
                                                <HeaderStyleDefault BorderStyle="Solid" Height="26px" HorizontalAlign="Left">
                                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                </HeaderStyleDefault>
                                                <EditCellStyleDefault BorderStyle="None" BorderWidth="0px">
                                                </EditCellStyleDefault>
                                                <FrameStyle BackColor="Window" BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif"
                                                    Font-Size="8.25pt" Height="201px" Width="100%">
                                                </FrameStyle>
                                                <Pager MinimumPagesForDisplay="2" NextText="下页" PrevText="上页" StyleMode="ComboBox"
                                                    PageSize="100" Pattern="&lt;table width=100%&gt;&lt;tr&gt;&lt;td align=left&gt;页码：[currentpageindex]/[pagecount] 每页:[pagesize]条&lt;/td&gt;&lt;td align=right&gt;[default]&lt;td&gt;&lt;/tr&gt;&lt;/table&gt;">
                                                    <Style BackColor="#FFFFCC" BorderStyle="Solid" BorderWidth="1px" Height="26px">
                                                        <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White" > </BorderDetails ></Style>
                                                </Pager>
                                                <AddNewBox>
                                                    <Style BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px">
                                                        <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White" > </BorderDetails ></Style>
                                                </AddNewBox>
                                                <ClientSideEvents BeforeEnterEditModeHandler="UWGDetail_BeforeEnterEditModeHandler" />
                                            </DisplayLayout>
                                        </igtbl:UltraWebGrid>
                </td>
                </tr>
            </table>
        </div>
        <input id="hID" runat="server" type="hidden" />
        <input id="hNum" runat="server" type="hidden" />
        <input id="hState" runat="server" type="hidden" />        
         <asp:TextBox ID="txtSiteID" runat="server" Visible="false"></asp:TextBox>
        </form>
    </center>
</body>
</html>
